<template>
  <div>
    <router-view/>
    <FooterGuide v-show="$route.meta.showFooter==true"/>
  </div>
</template>

<script>
  import FooterGuide from "./components/FooterGuide/FooterGuide.vue";
  import {mapActions} from 'vuex'
  import {RECEIVE_ADDRESS} from "./store/mutation-types";
  //import {reqAddress} from "./api";
  //import {reqfoodCategorys} from "./api";

  export default {
    /*async mounted() {
      const res =await reqAddress('40.10038,116.36867')
      console.log(res)
    },*/
    mounted() {
      //this.$store.dispatch('getAddress')
      this.getAddress()
      this.getUserInfo()
    },
    methods:{
      ...mapActions(['getAddress','getUserInfo'])
    },
    components:{
      FooterGuide
    },

  }
</script>

<style scoped>

</style>
